package com.sls.web.manager.game.service;

import com.sls.web.manager.game.pojo.YunEnProduct;
import com.sls.web.manager.game.pojo.YunEnRespInfo;
import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;

public interface YunService {

	/**
	 * 保存
	 * 
	 * @param product
	 * @param userInfo
	 */
	public void save(YunEnProduct product, UserInfoVO userInfo);

	/**
	 * 修改信息
	 * 
	 * @param product
	 */
	public void update(YunEnProduct product, UserInfoVO userInfo);

	/**
	 * 详情查询
	 * 
	 * @param id
	 * @param userInfo
	 * @return
	 */
	public YunEnProduct queryById(String id, UserInfoVO userInfo);

	/**
	 * 分页查询
	 * 
	 * @param product
	 * @param userInfo
	 * @return
	 */
	public Pagination<YunEnProduct> queryPage(YunEnProduct product,
			UserInfoVO userInfo);

	/**
	 * 批量审核
	 * 
	 * @param supplierId
	 * @param priceRatio
	 * @param currentOperator
	 */
	public void confirmAudit(String supplierId, int priceRatio,
			UserInfoVO currentOperator);

	/**
	 * 批量上架
	 * 
	 * @param state
	 * @param currentOperator
	 */
	public void batchOnline(String state, UserInfoVO currentOperator);

	/**
	 * 批量下架
	 * 
	 * @param state
	 * @param currentOperator
	 */
	public void batchOffline(String state, UserInfoVO currentOperator);

	public YunEnRespInfo queryOrder(String orderId, UserInfoVO currentOperator);
}
